package org.hentor.modules.generate.generate.enums;

/**
 * 生成ddl方式
 */
public enum GenerateModelType {

    /**
     * 创建
     */
    CREATE_TABLE("CREATE","创建表"),

    /**
     * 修改表备注
     */
    UPDATE_TABLE_COMMENT("UPDATE_TABLE_COMMENT","修改表备注"),

    /**
     * 创建表主键
     */
    CREATE_PRIMARY_KEY("CREATE_PRIMARY_KEY","创建表主键"),

    /**
     * 删除表主键
     */
    DELETE_PRIMARY_KEY("DELETE_PRIMARY_KEY","删除表主键"),

    /**
     * 修改表字段
     */
    UPDATE_COLUMN_NAME("UPDATE_COLUMN_NAME","修改表字段"),


    /**
     * 修改表字段属性
     */
    UPDATE_COLUMN_TYPE("UPDATE_COLUMN_TYPE","修改表字段属性"),
    /**
     * 删除
     */
    DELETE("DELETE","删除");
    private String code;
    private String desc;

    GenerateModelType(String code,String desc){
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
